package org.inspur.entity;

import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/**
 * @author lijiahao
 * @date 2024/7/2
 */
@DataType
public class FlowEntity {

    @Property
    private String userId;

    @Property
    private String userName;

    @Property
    private String timestamp;

    @Property
    private String txid;

    @Property
    private String data;

    public FlowEntity() {
    }

    public FlowEntity(String userId, String userName, String timestamp, String txid, String data) {
        this.userId = userId;
        this.userName = userName;
        this.timestamp = timestamp;
        this.txid = txid;
        this.data = data;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getTxid() {
        return txid;
    }

    public void setTxid(String txid) {
        this.txid = txid;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
